Skip to content

fix: add skills/ directory for Claude Code skill discovery#2

Merged
SnehalRaj merged 4 commits intomainfrom
fix/skill-discovery-directory-structure
Feb 27, 2026
Merged

fix: add skills/ directory for Claude Code skill discovery#2
SnehalRaj merged 4 commits intomainfrom
fix/skill-discovery-directory-structure

Conversation

@SnehalRaj
Copy link
Owner

Summary

  • Claude Code discovers plugin skills by scanning skills/<name>/SKILL.md inside plugin directories. The SKILL.md was at the repo root and inside skill_issue/ (Python package), neither of which Claude Code scans.
  • Created skills/skill-issue/SKILL.md with co-located reference docs, removed stale copies, bumped versions.

Root Cause

Claude Code's skill discovery pipeline scans <plugin-root>/skills/<name>/SKILL.md. The skill-issue package placed SKILL.md at the repo root (not scanned) and inside the Python package skill_issue/SKILL.md (also not scanned). Adding the standard skills/skill-issue/SKILL.md path makes it discoverable.

Changes

File Action Why
skills/skill-issue/SKILL.md Created (moved from root) Claude Code discovery convention
skills/skill-issue/references/*.md Created (moved from references/) Co-locate skill reference docs
SKILL.md (root) Deleted (moved) Stale location
skill_issue/SKILL.md Deleted Stale Python package copy
pyproject.toml Removed package-data entry, bumped 1.2.0 → 1.3.0 Stop bundling SKILL.md in wheel
.claude-plugin/plugin.json Bumped 1.0.0 → 1.1.0 Reflects new structure

Test plan

  • Install plugin from this branch and start a new Claude Code session
  • Verify skill-issue appears in the available skills system reminder
  • Say "challenge me" or "my stats" — skill-issue should trigger
  • Verify skill-issue CLI still works (skill-issue --help)

🤖 Generated with Claude Code

Claude Code discovers skills by scanning skills/<name>/SKILL.md inside
plugin directories. Move SKILL.md and reference docs into the canonical
skills/skill-issue/ path so the skill is automatically discovered.
The canonical location is now skills/skill-issue/SKILL.md.
The Python wheel no longer bundles SKILL.md as package data.
plugin.json: 1.0.0 → 1.1.0 (new skills/ layout)
pyproject.toml: 1.2.0 → 1.3.0 (SKILL.md removed from wheel)
The CLI's init --claude and init --print commands need to read SKILL.md.
Add a symlink at skill_issue/SKILL.md → ../skills/skill-issue/SKILL.md
so the package-relative path works for both pip installs (setuptools
follows symlinks when building wheels) and dev mode.

Also update _get_skill_md_path() to check skills/skill-issue/SKILL.md
as a fallback for dev checkouts where the symlink might not resolve.
@SnehalRaj SnehalRaj merged commit 1eba5e7 into main Feb 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant